﻿@using System.Configuration

@using WebMarkupMin.Sample.Logic.Services

@{
	var fileContentService = new FileContentService(
		ConfigurationManager.AppSettings["webmarkupmin:Samples:TextContentDirectoryPath"]);

	Page.Title = "Contact";
	Page.Body = fileContentService.GetFileContent("contact.html");
}

<div class="l-main-content">
	<h2>@Page.Title</h2>
	@Html.Raw(Page.Body)
</div>
<script>
	!function (d, s, id) {
		var js, fjs = d.getElementsByTagName(s)[0],
			p = /^http:/.test(d.location) ? 'http' : 'https';
		if (!d.getElementById(id)) {
			js = d.createElement(s);
			js.id = id;
			js.src = p + '://platform.twitter.com/widgets.js';
			fjs.parentNode.insertBefore(js, fjs);
		}
	}(document, 'script', 'twitter-wjs');
</script>